/*
 * @Author: xyq
 * @Date: 2021-03-02 11:42:05
 * @LastEditors: xyq
 * @LastEditTime: 2021-03-05 11:48:52
 * @FilePath: \little-eight\src\service\auth.js
 */
import { post, get } from '../utils/request';
import Cookie from 'js-cookie';
//获取页面token
function getToken() {
  return Cookie.get('token');
}
//登录页面登录接口
function loginApi(url, data) {
  return post(url, data);
}
//获取用户列表
function listUser(url, data) {
  return get(url, data);
}
// 获取路由信息
function getRouters(url, data) {
  return get(url, data);
}
// 获取用户详细信息
function getInfo(url, data) {
  return get(url, data);
}
export { getToken, loginApi, listUser, getRouters, getInfo };
